package com.adams.audit.common;

import com.adams.audit.util.ConfigUtil;

/**
 * 
 * 
 * File Name : AuditConstants.java
 * 
 * @Description : 审核模块常量
 */
public class AuditConstants
{

	// 数据类型编码
	public final static String[] TYPE_CODES = ConfigUtil.getConfig(
			"auditTypeCode").split(",");

	// 数据类型名称
	public final static String[] TYPE_NAMES = ConfigUtil.getConfig(
			"auditTypeName").split(",");

	// 数据类型相应springBeanId
	public final static String[] TYPE_SERVICES = ConfigUtil.getConfig(
			"auditTypeService").split(",");

	// 后台参数 审核参数类型group code
	public final static String SYS_AUDIT_CODE = "ADAMS";

	// 后台参数 审核最大步骤name code
	public final static String MAX_STEP = "max_step";

	// 后台参数无效情况下程序默认的审核最大步骤
	public final static int DEFAULT_MAX_STEP = 10;

	// 待审状态
	public final static String AUDIT_WAIT = "wait";

	// 通过状态
	public final static String AUDIT_PASS = "pass";

	// 驳回状态
	public final static String AUDIT_OVERRULE = "overrule";

	// 创建待审核
	public final static int CREATE_ACTION_TYPE = 1;

	// 修改待审核
	public final static int EDIT_ACTION_TYPE = 2;

	// 删除待审核
	public final static int DELETE_ACTION_TYPE = 3;
	
	// 内部资源
	public final static String OUTER_SOURCE_TYPE = "outer";
	
	// 外部资源
	public final static String INNER_SOURCE_TYPE = "inner";

	private AuditConstants()
	{

	}
}
